<template>
  <div>
    <Button type="primary" @click="login">登陆</Button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      userInfo: {
        id: "682265633886208",
        createBy: "",
        createTime: "2018-05-01 16:13:51",
        updateBy: "admin",
        updateTime: "2021-01-22 15:06:05",
        delFlag: 0,
        username: "admin",
        password: null,
        nickname: "李来宾",
        mobile: "18782059031",
        email: "admin@exrick.cn",
        address: "北京市,市辖区,东城区",
        street: "天府1街",
        sex: "男",
        passStrength: "弱",
        avatar: "https://ooo.0o0.ooo/2019/04/28/5cc5a71a6e3b6.png",
        type: 1,
        status: 0,
        description: "我是大帅逼",
        departmentId: "40322811096469504",
        startDate: 25,
        endDate: 28,
        departmentTitle: "技术部",
        birth: "2020-04-15",
        wageId: null,
        wage: 174.91,
        defaultRole: null,
        ding: "01203901645526258631",
        systemLimitEdu: null,
      },
      accessToken: "ed6318511545417fbb3fdaabc6e5f41c",
    };
  },
  computed: {
    ...mapActions(["setUserInfo", "setAccessToken"]),
  },
  methods: {
    login() {
      this.setAccessToken(this.accessToken);
      this.setUserInfo(this.userInfo);
      this.setAccountBalance(8);
      this.setDepartBalance(10);
    },
  },
};
</script>

<style>
</style>